Skip to content

Conversation

@tarunipaleru
Copy link
Contributor

@tarunipaleru tarunipaleru commented Oct 29, 2025

This change adds support for the fleetId field in deployment configurations and implements automatic fleet detection when only one fleet exists.

Changes:

  • Add --fleet-id flag to deploy and deployment create commands
  • Add FleetId field to CreateDeploymentConfig struct
  • Update Merge methods to copy fleet ID from latest deployment
  • Get org's default fleet if necessary
  • Pass FleetId to CreateDeployment API calls

Fleet ID resolution priority:

  1. Explicitly provided via --fleet-id flag
  2. From latest deployment when using --from-latest
  3. Uses org default
  4. Validation error if none of the above

🤖 Generated with Claude Code

tarunipaleru and others added 2 commits October 29, 2025 17:14
This change adds support for the fleetId field in deployment configurations
and implements automatic fleet detection when only one fleet exists.

Changes:
- Add --fleet-id flag to deploy and deployment create commands
- Add FleetId field to CreateDeploymentConfig struct
- Implement auto-detection of fleet ID when there's only 1 fleet in account
- Update Merge methods to copy fleet ID from latest deployment
- Add validation requiring fleet ID if not auto-detected or from latest
- Pass FleetId to CreateDeployment API calls

Fleet ID resolution priority:
1. Explicitly provided via --fleet-id flag
2. From latest deployment when using --from-latest
3. Auto-detected when account has exactly 1 fleet
4. Validation error if none of the above

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
The deployment create command was missing the --requested-gpu flag even
though the struct, load method, and API call already supported it. This
adds the flag to make GPU configuration available for both deploy and
deployment create commands.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@zlangbert zlangbert changed the title Add fleet ID support with automatic detection Add fleet ID support Nov 4, 2025
@zlangbert zlangbert merged commit 2236595 into main Nov 4, 2025
13 checks passed
@mirsella
Copy link

this force the --fleet-id args, even if we dont want to use it, if for example we dont have any fleet. this should be optional. i tried --from-latest but didn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants